package com.xi.mapper;

import com.xi.pojo.Systems;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SystemsMapper {

    /*
     * 显示系统信息
     * */
    @Select("select renewal_days renewalDays, overdue_fees overdueFees from systems where id = 1")
    Systems getSystems();

    /*
     * 修改系统信息
     * */
    @Update("update systems set renewal_days = #{renewalDays},overdue_fees = #{overdueFees} where id = 1")
    void updateSystems(Systems systems);
}
